import React, { useEffect, useRef, useState } from 'react'
import { useHistory, useDispatch, useSelector } from 'dva'
import  styles from "./index.less"
import { Link, useIntl, connect, history } from 'umi';
import { LeftOutlined } from '@ant-design/icons';
function Index() {
  const history = useHistory()
  const dispatch = useDispatch()
  const {
    userInfo
  } = useSelector(({ index }) => index)

  const { formatMessage } = useIntl();
  return (
    <div className={styles.returnIndex}>
     
      <div className={`${styles.header} ${styles.headerFixed}`}>
      <LeftOutlined style={{
            color: '#2c589a',
            marginRight:5
          }}/>
        <p
          className={styles.p1}
          style={{ color:  '#2c589a'}}
          onClick={() => {
            history.goBack()
          }}
        >
          {formatMessage({ id: 'RETYURN_INDEX' })}
        </p>
      </div>
    </div>
  )
}

export default Index
